
import dropdown_forlist from "./dropdown_forlist";

let TEMPLATE = `
<el-container>
    <el-header style="text-align: right; font-size: 12px">
        <dropdown_forlist></dropdown_forlist>
    </el-header>
    
    <el-main>
        <el-table :data="jsinfos">
            <el-table-column prop="xsdk_ver" :label="headdescs.xsdk_ver" width="140">
            </el-table-column>
            <el-table-column prop="btype" :label="headdescs.btype" width="140">
            </el-table-column>
            <el-table-column prop="fname" :label="headdescs.fname">
            </el-table-column>
            <el-table-column :label="headdescs.downurl">
            <template scope="scope">
            <a :href="scope.row.downurl">{{headdescs.downurl}}</a>
            </template>
            </el-table-column>
        </el-table>
    </el-main>
</el-container>
`
export default {
    name: "list_xpmplugins",
    template: TEMPLATE,
    data: function () {
        return {
            contname: "plugins",
            jsinfos: [],
            headdescs: {
                xsdk_ver: "xsdk版本",
                btype: "bin类型 ",
                fname: "文件名称",
                downurl:"点击下载"
            }
        }
    },

    components: {
        "dropdown_forlist": dropdown_forlist
    },

    mounted: function () {
        console.log("do nothing");
        axios({
            url:"/conf/dev_bins.json"
        }).then(
            (resp)=>{
                console.log(resp, "--->>resp");
                this.jsinfos = resp["data"];
                
            }
        )
    }
}